using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Forum
{
    public class Utils
    {
        public static string KillScript(string txt)
        {
            txt = txt.Trim();
            txt = txt.Replace("<", "&lt;");
            txt = txt.Replace(">", "&gt;");
            return txt;
        }

        public static string ModuleID
        {
            get { return "Forum"; }
        }

        public static int RequestID()
        {
            string[] id_vn = HttpContext.Current.Request["ID"].Split('_');
            return Convert.ToInt32(id_vn[0]);
        }

    }
}
